From 55f85d5c1d3db7451c78bbb25712ee0cb27f2bdf Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Wed, 1 Jan 2014 07:06:36 +0000 Subject: [PATCH] Maggeo, wfff_xml fixes. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4698 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/maggeo.cc | 4 ++-- gpsbabel/wfff_xml.cc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpsbabel/maggeo.cc b/gpsbabel/maggeo.cc index 2db30f658..db3ee579c 100644 --- a/gpsbabel/maggeo.cc +++ b/gpsbabel/maggeo.cc @@ -138,10 +138,10 @@ maggeo_read(void) } break; case 8: - wpt_tmp->shortname = xstrdup(s); + wpt_tmp->shortname = s; break; case 9: - wpt_tmp->description = xstrdup(s); + wpt_tmp->description = s; break; case 10: gcdata->placer = s; diff --git a/gpsbabel/wfff_xml.cc b/gpsbabel/wfff_xml.cc index d38264ac2..c58b67a22 100644 --- a/gpsbabel/wfff_xml.cc +++ b/gpsbabel/wfff_xml.cc @@ -226,16 +226,16 @@ void wfff_e(xg_string args, const QXmlStreamAttributes* unused) wpt_tmp = waypt_new(); if (snmac) { - wpt_tmp->shortname = xstrdup(ap_mac); + wpt_tmp->shortname = ap_mac; } else { - wpt_tmp->shortname = xstrdup(ap_ssid); + wpt_tmp->shortname = ap_ssid; } snprintf(desc, sizeof desc, "%s/%s/WEP %s/Ch %d/%2.0fdB/%2.0fdB/%s", (snmac?ap_ssid:ap_mac), ap_type, ap_wep, ap_chan, ap_mnrssi, ap_mxrssi, ap_last); - wpt_tmp->description = xstrdup(desc); + wpt_tmp->description = desc; wpt_tmp->latitude = ap_lat; wpt_tmp->longitude = ap_lon; -- 2.30.2